﻿<UserControl x:Class="WPF.TestEditor.Controls.History.StepResult"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
      
    <Grid >
            <Grid.RowDefinitions>
                <RowDefinition Height="100"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="20"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Image Source="{Binding ResultIcon}"  Width="18" Height="18" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0"/>
            <TextBlock Text="{Binding ResultText}"  VerticalAlignment="Top" Grid.Column="1" Margin="2 5 2 0" />
            <Image Source="{Binding ResultImg}"  Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="2"  MouseUp="Image_MouseUp"/>
            <ScrollViewer  Grid.Column="3" VerticalAlignment="Top" Padding="5 0 5 10" Margin="5 0 5 5" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"  Style="{DynamicResource metroScrollViewer}">
                <TextBlock Text="{Binding ResultLog}" TextWrapping="WrapWithOverflow" ScrollViewer.CanContentScroll="True" />
            </ScrollViewer>
        </Grid>

</UserControl>
